//
//  AddressBookHelper.h
//  青旅O2O
//
//  Created by qlwl on 16/5/18.
//  Copyright © 2016年 qlwl. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>

typedef void (^HYBSuccessDictBlock) (NSDictionary *dict);

typedef void(^ABAddressBookRequestAccessCompletionHandler)(bool granted, CFErrorRef error);

@interface AddressBookHelper : UIViewController<ABPeoplePickerNavigationControllerDelegate, ABPersonViewControllerDelegate> {
@private
    //__weak UIViewController    *_targetController;
    HYBSuccessDictBlock        _completionBlock;
    ABPeoplePickerNavigationController *_pickerView;
}
- (void)showInControllerWithCompletion:(HYBSuccessDictBlock)completion ;

@end
